<style>
body{overflow-x:auto;}
</style>
<div class="Singleform">
<div class="tabs">
<div class="alert alert-info">
  上传数据xml或者xls文件，批量导入数据。
</div>
{{$this->Html->script(array('jquery/jquery.form.js'))}}
<?PHP
	echo $this->MForm->create($current_model,array('type'=>'file','data-noajax'=>true));
?>
        <fieldset>
		<div class="form-group">
			<label class="col-sm-2 control-label" for="StyleVariables">数据文件</label>
			<div class="col-sm-10 controls text">
				<input type="file" id="StyleVariables" style="height:32px;" name="importfile">
			</div>
		</div>
    <div class="form-group">
    	<label class="col-sm-2 control-label"></label>
    	<div class="col-sm-10 controls"><?php echo $this->MForm->submit(__('Import'),array('id'=>'btnsubmit')); ?></div>
    </div>
    </fieldset>
	{{$this->MForm->end()}}
</div>

<hr/>
<div class="alert alert-warning">
	<p>如果指定了编号，则导入时会自动修改原有数据。如果不修改原有数据请不要设置编号</p>
</div>
</div>
</div>
<table class="table table-striped table-hover">
<thead>
<tr>
		<th>id</th>
		<th>name</th>
		<th>cate_id</th>
		<th>questiontype</th>
		<th>content</th>
		<th>option1</th>
		<th>answer1</th>
		<th>option2</th>
		<th>answer2</th>
		<th>option3</th>
		<th>answer3</th>
		<th>option4</th>
		<th>answer4</th>
		<th>option5</th>
		<th>answer5</th>
		<th>option6</th>
		<th>answer6</th>
	</tr>

<tr>
		<th>编号</th>
		<th>问题内容</th>
		<th>所属分类</th>
		<th>问题类型</th>
		<th>试题解析</th>
		<th>选项1</th>
		<th>选项1是否答案</th>
		<th>选项2</th>
		<th>选项2是否答案</th>
		<th>选项3</th>
		<th>选项3是否答案</th>
		<th>选项4</th>
		<th>选项4是否答案</th>
		<th>选项5</th>
		<th>选项5是否答案</th>
		<th>选项6</th>
		<th>选项6是否答案</th>
	</tr>
	</thead>
	<tr>
		<td colspan="17" align="center">只需前两行</th>
	</tr>
	<tr>
		<th>-</th>
		<th>-</th>
		<th>-</th>
		<th>radio 单选<br/>checkbox 多选<br/>input 填空<br>textarea 问答<br/></th>
		<th>-</th>
		<th>-</th>
		<th>为答案时填是<br>不为时填否或空</th>
		<th>-</th>
		<th>为答案时填是<br>不为时填否或空</th>
		<th>-</th>
		<th>为答案时填是<br>不为时填否或空</th>
		<th>-</th>
		<th>为答案时填是<br>不为时填否或空</th>
		<th>-</th>
		<th>为答案时填是<br>不为时填否或空</th>
		<th>-</th>
		<th>为答案时填是<br>不为时填否或空</th>
	</tr>


</table>

